import axios from './axios'

export function getCost(params = {}) {
  return axios({
    url: '/kinds-number/costDocument',
    params
  })
}

//保存   type为1时代表折数，定价和单款随便传
export function putCostSave(data) {
  return axios({
    method: 'post',
    url: '/kinds-number/costDocumentButton1',
    data
  })
}

// 更新
export function putCostUpdate(data) {
  return axios({
    method: 'post',
    url: '/kinds-number/costDocumentButton2',
    data
  })
}

//获取季度
export function getQuarter(params) {
  return axios({
    url: '/quarter/quarter',
    params
  })
}
